package flextv.main.command {

import com.adobe.cairngorm.commands.ICommand;
import com.adobe.cairngorm.control.CairngormEvent;

import flash.desktop.NativeApplication;

import flextv.core.logic.Logger;
import flextv.main.event.QuitEvent;

import mx.logging.ILogger;

public class QuitCommand implements ICommand {
	
	private static const LOG: ILogger = Logger.getLog(QuitCommand);
	
	public function QuitCommand() {
	}

	public function execute(_event: CairngormEvent): void {
		const event: QuitEvent = _event as QuitEvent;
		LOG.info("Executing [event=" + event + "].");
		
		NativeApplication.nativeApplication.exit();
	}
	
}
}